<?php
include './class/class.alexa.php';      

$obj = new AlexaStats();
$obj->domain = 'pizza.de';      // Define domain
$obj->type = '1';               // Graph type
/*
* 1 = Daily traffic rank trend
* 2 = Daily pageviews (percent)
* 3 = Daily pageviews per user
* 4 = Time on site (minutes)
* 5 = Bounce rate (percent)
* 6 = Search visits (percent) 
*/
           
// Optional params
$obj->period = '6';             // Define date range in months | Standard 1 month
$obj->w = '440';                // Define width of graph | Standard 660px
$obj->h = '220';                // Define height of graph | Standard 330px

echo $obj->writeGraph();        // Displays graph as image
?>